package test;

public class Pilot {
	public void drive(AirPlane p) {
		p.takeoff();
		p.speedup();
		if (p instanceof Warcraft) {// 不太好
			Warcraft cr = (Warcraft) p;
			cr.emission();// 发射导弹
		}
		p.land();
	}
}
